<%--
  Created by IntelliJ IDEA.
  User: xiong
  Date: 2020/7/9
  Time: 13:55
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>列表</title>

    <style>
        table {
            width: 80%;
            margin-left: 10%;
            text-align: center;
            border-collapse: collapse; /*合并边框线*/
            margin-top: 20px;
            font-size: 10px;
        }

        table, td, th {
            border: 1px #999 solid;
        }

        a {
            text-decoration: none;
            color: black;
        }

        .btn {
            display: inline-block;
            background-color: red;
            color: white;
            text-align: center;
            width: 100px;
            height: 30px;
            line-height: 30px;
            border: 1px red solid;
            outline: none;
        }

        tr {
            height: 40px;
        }

        /*固定表格宽度*/
        td, th {
            width: 33%;
        }

    </style>
    <script src="/js/jquery-3.5.1.min.js"></script>
    <script src="/js/layui.js"></script>
    <link rel="stylesheet" href="/layui/css/layui.css">
</head>
<body>
<form>
    <table>
        <%--        表头--%>
        <tr>
            <th>订单编号</th>
            <th>订单价格</th>
            <th>订单时间</th>
        </tr>
        <%--    订单信息--%>
        <c:forEach items="${orders}" var="order">
            <tr>
                <td>${order.orderno}</td>
                <td>${order.price}</td>
                <td>${order.ordertime}</td>
            </tr>
        </c:forEach>
    </table>
</form>

</body>
</html>

